<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			let a=[1,2,3,4,5,6,7,8,9,10,45,38,12];
			for (var i = 0,sum=0; i < a.length; i++) {
				if(a[i] % 2==0){
					sum=sum+a[i]
					
				}else{
					console.log(a[i])
				}
			}
			console.log(sum)
			
			
			
			
		</script>
	</head>
	<body>
	</body>
</html>
